import React from 'react'
import PlanAIcon from "../../../res/images/web/AI/翻倍盈利计划@2x.png"
import PlanBIcon from "../../../res/images/web/AI/打包盈利计划@2x.png"
import {withRouter,} from 'react-router-dom'
const AIPlan = props => {
    const {
        type,
    } = props

    const m = {
        'A' : {
            title: '翻倍',
            desc: '全黑包退/红一场就赚',
            icon: PlanAIcon,
        },
        'B' : {
            title: '打包',
            desc: '专注胜负平/低风险高收益',
            icon: PlanBIcon,
        },
    }

    return <div
        className='ai-plan-ctn'
        onClick={() => this.props.history.push(`./AI-plan/${type}`)}
    >
        <img src={m[type].icon} alt=''/>
        <span className='ai-plan-desc'>{m[type].desc}</span>
        <span className='ai-plan-title'>{m[type].title}</span>
        <span className='ai-plan-sub-title'>盈利计划</span>
    </div>
}

export default withRouter(AIPlan)
